package com.optimatch.ui.controler.actions;

import java.awt.Button;
import java.awt.event.ActionEvent;

import com.optimatch.ui.controler.Controler;
import com.optimatch.ui.controler.localization.Constants;
import com.optimatch.ui.controler.localization.LanguageManager;
import com.optimatch.ui.model.Model;
import com.optimatch.ui.view.View;

public class ResoudreAction extends Action {

	private Controler controler;
	public ResoudreAction(Model model, View view, ListAction actions, Controler nControler) {
		super(model, view, actions);
		controler = nControler;
		putValue(Action.NAME, LanguageManager.getBundle()
				.getString(Constants.RESOUDRE));
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		model.getProbleme().solve(controler);

	}

}
